package com.yytek.upgrade.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yytek.common.core.annotation.Excel;
import com.yytek.common.core.web.domain.BaseEntity;

/**
 * 升级策略设备关联对象 upgrade_strategy_device_topo
 * 
 * @author yytek-iot
 * @date 2022-09-06
 */
@ApiModel("升级策略设备关联对象")
public class UpgradeStrategyDeviceTopo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 策略id */
    @ApiModelProperty("策略id")
    private Long strategyId;

    /** 设备id */
    @ApiModelProperty("设备id")
    private String deviceId;

    /** 归属项目id */
    @Excel(name = "归属项目id")
    @ApiModelProperty("归属项目id")
    private Long projectId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    @ApiModelProperty("设备名称")
    private String deviceName;

    /** 归属项目 */
    @Excel(name = "归属项目")
    @ApiModelProperty("归属项目")
    private String projectName;

    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("strategyId", getStrategyId())
            .append("deviceId", getDeviceId())
            .append("projectId", getProjectId())
            .append("deviceName", getDeviceName())
            .append("projectName", getProjectName())
            .toString();
    }
}
